import indexChildren from '@/router/indexConfig'
export default [
  {
    path: '/index',
    name: 'index',
    component: () => import('@/views/Index.vue'),
    children: indexChildren
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/Login.vue')
  },
  {
    path: '/register',
    name: 'register',
    component: () => import('@/views/Register.vue')
  },
  {//重定向
    path: '/',
    redirect: '/index'
  },
  { //404
    path: '/:error(.*)',
    component: () => import('@/views/NoFound.vue')
  }
]
